RenderContext.ShowCorrectAnswers Property

Get and sets a value indicating whether correct answers should be displayed in the content, if possible. Regardless of this value, answers may only be shown if it is supported in the current activity format for the current LearningSession.View. If not set, answers will not be shown.

Parent Type: RenderContext

Namespace: Microsoft.LearningComponents

Assembly: Microsoft.LearningComponents.dll

Syntax
C#

public bool ShowCorrectAnswers

{ get; set; }
Remarks

This setting only affects content which is dynamically rendered, such as Lrm content, and only in Review and Grading views. In other views and content formats, the setting is ignored.